import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class TestCompareUcAndClass {
    public static void main(String[] args) throws IOException {
        String relation="d^0(Version320) OR d^0(Version310) OR d^0(Version360)&&org.apache.lucene.search.MultiTermQuery&&version3.1.0&&r41&&0.2543850450778823";
        String classpath="D:\\study\\IRTool\\IRTool\\data\\lucene";
        String ucpath="D:\\study\\IRTool\\IRTool\\data\\lucene-release";
        String[] relationdir=relation.split("&&");
        String thisLine;
        BufferedReader in = new BufferedReader(new FileReader(classpath+"\\"+relationdir[0]+"\\"+relationdir[1]+".txt")); // 创建缓存区字符输入流，需要传如Reader对象
        while((thisLine = in.readLine()) != null)    // 每次读取一行，直到文件结束
            System.out.println(thisLine);
        in.close();
        System.out.println("----------------------------");
        BufferedReader in1 = new BufferedReader(new FileReader(ucpath+"\\"+relationdir[2]+"\\"+relationdir[3]+".txt")); // 创建缓存区字符输入流，需要传如Reader对象
        while((thisLine = in1.readLine()) != null)    // 每次读取一行，直到文件结束
            System.out.println(thisLine);
        in1.close();
    }
}
